<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>调试程序</title>
	</head>
	<body>
		<script type="text/javascript" charset="UTF-8">
			var time = prompt("请输入当前时", "");
			if(time >= 6 && time <= 12) {
				document.write("<h3>上午好！欢迎来到贵美</h3><br/>");
				var s= 0;
				while( s < time) {
					document.write("<img src='img/smile.gif'/>");
					s++;
				}
			} else if (time >= 13 && time <= 20) {
				document.write("<h3>下午好！欢迎来到贵美</h3><br/>")
				var x = 0;
				while (x < time) {
					document.write("<img src='img/aftermoon.gif'/>");
					x++;
				}
			} else {
				document.write("夜深了，改休息了！！！<br/>");
				var y = 0;
				while ( y < time) {
					document.write("<img src='img/moon.gif'/>");
					y++;
				}
			}
			
		</script>
	</body>
</html>
